package com.ccp.dev.im.model;

import com.ccp.dev.core.basic.model.BaseModel;
import com.ccp.dev.im.server.constant.Constants;

import java.util.Date;

/**
 * 系统消息表 im_system_message
 * 
 * @author y
 * @date 2020-03-11 10:21:05
 */
public class ImSystemMessage extends  BaseModel<ImSystemMessage>
{
	private static final long serialVersionUID = 1L;

    public static final Integer IS_READ_Y = 1; //是否已读  已读
    public static final Integer IS_READ_N = 0; //是否已读  未读
    public static final Integer IS_Del_Y = 1;  //是否删除  是
    public static final Integer IS_Del_N = 0;  //是否删除  否

    public ImSystemMessage(){}

    public ImSystemMessage(String id , String sendUser , String receiveUser , String content , String roomId ){
        this.id = id;
        this.sendUser = sendUser;
        this.roomId = roomId;
        this.receiveUser = receiveUser;
        this.content = content;
        this.sendTime = new Date();
        this.isDel = IS_Del_N;
        this.isRead = IS_READ_N;
    }

    /**
     * 发送消息用户
    */
    private String  sendUser;
    /**
     * 接收消息用户
    */
    private String  receiveUser;
    /**
     * 消息内容
    */
    private String  content;
    /**
     * 发送时间
    */
    private Date  sendTime;
    /**
     * 是否已读
    */
    private Integer  isRead;
    /**
     * 是否删除
    */
    private Integer  isDel;
    /**
     * 主键
    */
    private String  id;
    /**
     * 群组id
     */
    private String roomId;

    public String getSendUser() {
        return sendUser;
    }

    public void setSendUser(String sendUser) {
        this.sendUser = sendUser;
    }

    public String getReceiveUser() {
        return receiveUser;
    }

    public void setReceiveUser(String receiveUser) {
        this.receiveUser = receiveUser;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public Integer getIsRead() {
        return isRead;
    }

    public void setIsRead(Integer isRead) {
        this.isRead = isRead;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRoomId() {
        return roomId;
    }

    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }

    @Override
    public String toString() {
        return "ImSystemMessage{" +
                "sendUser='" + sendUser + '\'' +
                ", receiveUser='" + receiveUser + '\'' +
                ", content='" + content + '\'' +
                ", sendTime=" + sendTime +
                ", isRead=" + isRead +
                ", isDel=" + isDel +
                ", id='" + id + '\'' +
                ", roomId='" + roomId +'\'' +
                '}';
    }
}
